extends Area2D

func _physics_process(delta):
	for i in get_overlapping_areas():
		if i.is_in_group("Ball"):
			i.vec.x = 5;
	var up = Input.get_action_strength("PlayerOneUp") * 5;
	var down = Input.get_action_strength("PlayerOneDown") * 5;
	var curY = position.y -up + down;
	if (curY > 16 and curY < 630):
		position.y += -up + down;
